force tdb to be standalone
authorMichael Tokarev <mjt@tls.msk.ru>
Tue, 26 Nov 2024 14:28:51 +0000 (17:28 +0300)
committerMichael Tokarev <mjt@tls.msk.ru>
Sat, 24 Jan 2026 05:55:25 +0000 (08:55 +0300)
Forwarded: not-needed

Upstream ships contents of lib/tdb/ as a separate
source of tdb.  Since we build samba anyway, there's
no need to have separate tdb source package, it's
enough to build it during samba build.

Always build tdb as stand-alone library
(instead of being samba-private if in a subdir).

When building as a sub-library within samba,
where libreplace is a private library, libtdb.so
will have rpath pointing to the private samba
dir.  Since tdb actually does not use anything
from libreplace, just remove the dependency.

Gbp-Pq: Name tdb-standalone.diff

lib/tdb/wscript

index cbb5c8bac43c75485806b73e4cef67ad0b0effde..dcaaf6cd27b3c906963874f8c5d0adc3636f9952 100644 (file)
@@ -78,7 +78,7 @@ def configure(conf):
         conf.env.replace_add_global_pthread = True
     conf.RECURSE('lib/replace')
 
-    conf.env.standalone_tdb = conf.IN_LAUNCH_DIR()
+    conf.env.standalone_tdb = conf.IN_LAUNCH_DIR() or True
     conf.env.building_tdb = True
 
     if not conf.env.standalone_tdb:
@@ -122,7 +122,7 @@ def build(bld):
 
     if not bld.CONFIG_SET('USING_SYSTEM_TDB'):
 
-        tdb_deps = 'replace'
+        tdb_deps = '' # 'replace'
 
         if bld.CONFIG_SET('USE_TDB_MUTEX_LOCKING'):
             tdb_deps += ' pthread'